package com.aplink.generic.pojo;

import java.io.Serializable;

public class GenericAttribute<N, V> implements GenericInterface<N, V>,
        Serializable {

    private static final long serialVersionUID = 4115259855233419140L;
    private N name;
    private V value;

    public GenericAttribute( N _name, V _value ) {
        this.name = _name;
        this.value = _value;
    }

    @Override
    public N getName() {
        return this.name;
    }

    @Override
    public V getValue() {
        return this.value;
    }

    @SuppressWarnings("unchecked")
    public void setValue( Object value ) {
        this.value = (V) value;
    }
}
